package com.kasuroid.core;

/**
 * Possible return codes in the framework.
 * 
 * @author Tomasz Rusak
 *
 */
public class RetCode 
{
    public static final int SUCCESS = 0;

    public static final int FAILURE = 1;

    public static final int BAD_PARAM = 2;

    public static String toString(int code)
    {
        String codeString;

        switch (code)
        {
            case SUCCESS:
                codeString = "SUCCESS";
                break;

            case FAILURE:
                codeString = "FAILURE";
                break;

            case BAD_PARAM:
                codeString = "BAD_PARAM";
                break;

            default:
                codeString = "UKNOWN";
                break;
        }

        return codeString;
    }
}
